package com.doit.demo02.test;
/*
*
* */

import java.util.Calendar;
import java.util.Date;

public class system {
    public static void main(String[] args) {
        long time1 = new Date().getTime();
        long time2 = Calendar.getInstance().getTimeInMillis();
        long time3 = System.currentTimeMillis();
        System.out.println(time1);
        System.out.println(time2);
        System.out.println(time3);

        long start = System.currentTimeMillis();
        for (int i = 0; i < 100000; i++) {
            System.out.print(i+" ");
        }
        System.out.println();
        long end = System.currentTimeMillis();
        System.out.println(end-start);
    }
}
